package com.ruoyi.edu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 软著对象 edu_copyright
 * 
 * @author sanda
 * @date 2024-12-30
 */
public class Copyright extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 软著ID */
    private Long copyrightId;

    /** 软著名称 */
    @Excel(name = "软著名称")
    private String copyrightName;

    /** 登记时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueTime;

    /** 附件 */
    @Excel(name = "附件")
    private String fileUrl;

    /** 教师ID */
    @Excel(name = "教师ID")
    private Long teacherId;

    @Excel(name = "教师姓名", targetAttr = "teacherName")
    private Teacher teacher;

    public void setCopyrightId(Long copyrightId)
    {
        this.copyrightId = copyrightId;
    }

    public Long getCopyrightId() 
    {
        return copyrightId;
    }
    public void setCopyrightName(String copyrightName) 
    {
        this.copyrightName = copyrightName;
    }

    public String getCopyrightName() 
    {
        return copyrightName;
    }
    public void setIssueTime(Date issueTime) 
    {
        this.issueTime = issueTime;
    }

    public Date getIssueTime() 
    {
        return issueTime;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("copyrightId", getCopyrightId())
            .append("copyrightName", getCopyrightName())
            .append("issueTime", getIssueTime())
            .append("remark", getRemark())
            .append("fileUrl", getFileUrl())
            .append("teacherId", getTeacherId())
            .toString();
    }
}
